<!DOCTYPE html>
<html>
	<include file="public/home@header"/>
	<body>
		<!--加载遮罩-->
		<div class="load"></div>
		
		<div class="">
			<a href="zhsq://abc">test:<a><br/> 
		</div>
		
	<include file="public/home@footer"/>
	<script type="text/javascript">
		submitFn()  
		function submitFn(){
			//判断浏览器
			var u = navigator.userAgent;
			if(/MicroMessenger/gi.test(u)) {
			    // 引导用户在浏览器中打开
			    alert('请在浏览器中打开');
			    return;
			}
			var d = new Date();
			var t0 = d.getTime();
			if(u.indexOf('Android') > -1 || u.indexOf('Linux') > -1){
			    window.location.href = "qtj://abc?vid=1";
			    t = Date.now();
			   	setTimeout(function(){
			        if (Date.now() - t < 4500) {
			            location.href = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.qtj.fungo&from=singlemessage';
			        }
			    }, 3000);
			}else if(u.indexOf('iPhone') > -1){
				openApp("zhsq://startapp?vid=1");
			}    
		}

		function openApp(src) {
			// 通过iframe的方式试图打开APP，如果能正常打开，会直接切换到APP，并自动阻止a标签的默认行为
			// 否则打开a标签的href链接
		    var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
			if (userAgent.indexOf("Safari") > -1) {
		        window.location.href =src;
		    }
		}


 
	</script>
	</body>
</html>
